<!DOCTYPE html>
<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>万年历</title>
		<link rel="stylesheet" type="text/css" href="css/style.css">
		<script type="text/javascript" src="js/main.js"></script>
	</head>

	<body onload=initial();>
		<div id="content">
			<div id="detail">
				<div id="date_content"></div>
				<div id="animal_year"></div>
				<p id="clock"><span id="oTime">00:00:00</span></p>
			</div>
			<form name="calender_content">
				<table class="week ch">
					<tr class="day">
						<td>日</td>
						<td>一</td>
						<td>二</td>
						<td>三</td>
						<td>四</td>
						<td>五</td>
						<td>六</td>
					</tr>
					<script>
						var Num; //Num计算出日期位置
						for(i = 0; i < 6; i++) {
							document.write('<table id="cal-content" cellspacing="0" style="width: 100%;"><tr>');
							for(j = 0; j < 7; j++) {
								Num = i * 7 + j;
								document.write('<td id="SD' + Num + '" onclick="addDay(' + Num + ')" ');
								//周六 周日 假期样式设定
								if(j == 0 || j == 6) {
									document.write('class="aorange"');
								} else {
									document.write('class="one"');
								}
								document.write('title=""></td>')
							}
							document.write('</tr></table><tr><td><table cellspacing="0" style="width: 100%;"><tr style="text-align:center">');
							//农历
							for(j = 0; j < 7; j++) {
								Num = i * 7 + j;
								document.write('<td id="LD' + Num + '" onclick="addDay(' + Num + ')" class="bs" title=""></td>')
							}
							document.write('</td></tr></table></td></tr>');
						}
					</script>
				</table>
				<div class="bottom-select">
					<div class="year_select">
						<span onclick="BtN('year_d')"></span>
						<select onchange="chaCld()" name="SY">
							<script>
								for(i = 1900; i < 2050; i++)
									document.write('<option>' + i + "年")
							</script>
						</select>
						<span onclick="BtN('year_a')"></span>
					</div>
					<div class="home_select">
						<span onclick="BtN('')"></span>
					</div>
					<div class="mounth_select">
						<span onclick="BtN('month_d')"></span>
						<select onchange="chaCld()" name="SM">
							<script>
								for(i = 1; i < 13; i++) document.write('<option>' + i + "月")
							</script>
						</select>
						<span onclick="BtN('month_a')"></span>
					</div>
				</div>
			</form>
		</div>
	</body>

</html>